import { Entity, Column } from "typeorm";
import { BaseEntity } from "../base.entity";
// 地址
@Entity()
export class Address extends BaseEntity {
  @Column({ comment: "是否默认地址 1为默认" })
  default: string;

  @Column({ comment: "用户id" })
  user_id: number;

  @Column({ length: 50, comment: "收货人姓名" })
  name: string;

  @Column({ length: 11, comment: "收货人手机号" })
  phone: string;

  @Column({ comment: "areaCode" })
  areaCode: string;

  @Column({ length: 50, comment: "省" })
  province: string;

  @Column({ length: 50, comment: "市" })
  city: string;

  @Column({ length: 50, comment: "区" })
  country: string;

  @Column({ length: 255, default: "", comment: "详细地址" })
  detailed: string;
}
